package com.quantum.core.components
{
	import mx.collections.ArrayCollection;
	import mx.controls.Button;
	import mx.controls.ToggleButtonBar;
	import mx.core.IFlexDisplayObject;
	import mx.events.FlexEvent;

	public class PerspectiveBar extends ToggleButtonBar
	{
		public function PerspectiveBar()
		{
			super();
			styleName="perspectiveBar";
		}

		override protected function createNavItem(label:String, icon:Class=null):IFlexDisplayObject
		{
			var b:Button=Button(super.createNavItem(label, icon));
			b.data=ArrayCollection(dataProvider).getItemAt(getChildIndex(b));
			return b;
		}
	}
}